<template>
    <el-tooltip
      placement="top"
    >
      <template slot="content">
        <span class="tip_box">{{content}}</span>
      </template>
      <el-icon type="info-circle" class="el-icon-warning-outline" :style="{color:color}" />
    </el-tooltip>
</template>

<script>
export default {  
  props: {
    content: {
      type: String,
      default: "Text"
    },
    color: {
      type: String,
      default: "rgba(0, 0, 0, 0.45)"
    },
  },
  data() {
    return {};
  }
};
</script>

<style scoped>
.tip_box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width:250px;
  font-size:14px;
  line-height:1.5;
}

/* 文字提示 */
.tip_icon {
  margin-left: 4px;
  font-size: 14px;
}
</style>